<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>社区回复</title>
    <meta name="keyword" content="${(question.title)!}"/>
    <meta name="renderer" content="webkit"/>
    <link href="/styles/base.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/system/index.js"></script>

    <link href="https://css.mafengwo.net/css/cv/css+base:css+jquery.suggest:css+plugins:css+plugins+jquery.jgrowl:css+other+popup:css+app+topbar_v2^alw^1542357401.css"
          rel="stylesheet" type="text/css"/>

    <link href="https://css.mafengwo.net/css/cv/css+mfw-ask+detail_v3:css+mfw-ask+img_pop:css+mfw-ask+detail_answer_foldup:css+mfw-ask+upload_pics:css+mfw-ask+pop_answer_success^Ylda^1557212042.css"
          rel="stylesheet" type="text/css"/>

    <script language="javascript"
            src="https://js.mafengwo.net/js/cv/js+jquery-1.8.1.min:js+global+json2:js+M+Module:js+M+M:js+M+Log:js+m.statistics:js+advert+inspector^alw^1563531411.js"
            type="text/javascript" crossorigin="anonymous"></script>
    <link href="/styles/strategyDetail.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/system/strategyDetail.js"></script>


    <script>
        $(function () {
            // 回答
            $('.commentBtn').click(function () {
                var content = $("#textid").val();
                var answerTitle = $("#data-answer").data("title");
                var answerId = $("#data-answer").data("id");
                $.post('/questions/saveAnswer', {content:content,answerTitle:answerTitle,answerId:answerId}, function (data) {
                    if (data.success) {
                        window.location.reload();
                    } else {
                        alert(data.msg);
                    }
                });
            });


            //分享点击事件的方法
            function share(share) {
                var tid = $(share).data("tid");
                console.log(tid);
                $.get("/travel/travelShare", {tid: tid}, function (data) {
                    if (data.success) {
                        alert("分享成功啦");
                    } else {
                        if (data.code == 102) {
                            alert(data.msg);
                        } else {
                            alert("分享成功啦");
                        }
                    }
                });
            }

            //三个分享点击事件
            $(".sina").click(function () {
                share(this);
            })
            $(".zone").click(function () {
                share(this);
            })
            $(".weixin").click(function () {
                share(this);
            })
        })
    </script>
</head>
<body>

<#assign currentNav="questions">
<#include "../common/navbar.ftl">
<div class="wrapper" data-qid="11857091" data-uid="67185011" id="_js_wrapper" data-is_answer_detail="0" data-source="1">
    <div class="detail-wrap clearfix">
        <!-- 问答主要内容 -->
        <div class="col-main">
            <div class="crumb">
                <a href="/questions/wenda/" target="_blank">马蜂窝问答</a> &gt; <span id="data-answer" data-id="${(question.id)!}" data-title="${(question.title)!}">${(question.title)!}</span>
            </div>
            <!-- 问题区域 -->
            <div class="q-detail" id="_js_askDetail">
                <!-- 问题详情 -->
                <div class="q-content">
                    <div class="q-title">
                        <h1>
                        ${(question.title)!}
                        </h1>
                    </div>
                    <div class="q-desc">${(question.content)!}</div>
                    <div class="q-info1 clearfix">
                        <div class="q-tags fl">
                            <a class="a-tag" href="/wenda/area-52314.html" target="_blank">${(question.tag.name)!}</a>
                        </div>
                        <div class="pub-bar fr">
                            <span class="photo"> <img src="${(question.userInfo.headImgUrl)!}" width="16" height="16"></span>
                            <span class="name">${(question.userInfo.nickname)!}</span>
                            <span class="time"><span>${(question.releaseTime?string("yyyy-MM-dd"))!}</span></span>
                        </div>
                    </div>
                </div>

                <div class="q-operate clearfix">
                </div>

                <!-- 邀请回答 -->
                <div data-pagelet id="pagelet-block-d568083a01f0a44317e28da4189abec7" class=""
                     data-api=":qa:pagelet:InviteUserAnswer"
                     data-params="{&quot;mddid&quot;:187613,&quot;qid&quot;:11857091,&quot;anum&quot;:25,&quot;flag&quot;:0}"
                     data-async="1" data-controller="/js/qa/InviteUserAnswer"></div>

                <div class="qa-bar-wrap _j_qaBar hide">
                    <div class="qa-bar-content">
                        <div class="q-operate">
                            <span class="atten-num">37652浏览</span>
                            <span class="atten-num"><span class="_j_same_num">10</span>人关注</span>
                            <a class="btn-atten _j_same_question " rel="nofollow" data-status=1><span>关注</span></a>

                            <a class="btn-answer _j_btn_goanswer" rel="nofollow">回答</a>
                        </div>
                        <div class="q-title">
                            <h1>${question.title}</h1>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 回答区域 -->
           <#-- <div class="answer-wrap">
                <div class="hd">
                    <span id="_j_anum">${answerTotal!}</span>个回答
                </div>-->
            <div class="comment-page _js_comment_pagination " data-comment_total="0"></div>
            <div class="comment-add clearfix _j_word">
                <textarea class="_j_content _j_word_check" id="textid"></textarea>
                <span class="word-count"><span class="_j_word_num">0</span>/<span
                        class="_j_max_num">600</span> 字</span>
                <input class="commentBtn" type="button" value="提交回答">
            </div>

                <div class="bd _j_pager_box">
                    <ul class="answer-list ">
                        <!-- 回答列表 -->
                        <div data-pagelet id="normal_answer_wrap" class=""
                             data-controller="/js/qa/ControllerDetailAnswerList">
                            <#list page.content as a>
                                <li class="answer-item clearfix _j_answer_item _js_answer12979174 " data-aid="12979174">

                                    <div class="answer-content _js_answer_content">
                                        <div class="answer-info clearfix">
                                            <div class="user-bar fl">
                                                <a class="_j_filter_click avatar" href="/wenda/u/85622320/answer.html"
                                                   target="_blank"><img src="${(a.headUrl)!}" width="48" height="48" class="photo"></a>
                                                <a class="name" href="/wenda/u/85622320/answer.html"
                                                   target="_blank">${(a.username)!}</a>
                                            </div>
                                        </div>
                                        <!-- 回答内容 -->
                                        <div class="_j_long_answer_item">
                                            <div class="_j_answer_html">${(a.content)!}</br><br/>==========<br/>
                                                <br/>
                                                如果你觉得TA的回答不错，快来给TA点个赞吧！<br/>
                                                你的支持是对作者莫大的鼓励~
                                            </div>
                                        </div>
                                    </div>
                                    <!-- 问答版权名片 -->
                                    <div class="a-operate _js_operate clearfix">
                                        <div class="fl">
                                            <!-- 问题分享 -->
                                            <div class="q-share cate-share">
                                                <a class="_js_showShare"><i class="q-share-icon"></i>分享</a>
                                                <div class="share-pop _j_share_pop hide clearfix"
                                                     data-title="100元在世界各地能吃到什么样的一餐？最精准旅行美食预算来啦" data-qid="11857091"
                                                     data-aid="12979174">
                                                    <a title="分享到新浪微博" class="sina  _j_do_share" data-site="wb"></a>
                                                    <a title="分享到QQ空间" class="zone  _j_do_share" data-site="qz"></a>
                                                    <a title="分享到微信" class="weixin  _j_do_share_wx" data-site="wx"></a>
                                                </div>
                                            </div>
                                            <div class="cmt-toggle">
                                                <a class="_js_slideComment" data-cnum=0
                                                   data-default_words="添加评论"><i></i><span>添加评论</span></a>
                                            </div>
                                            <div class="collect">
                                                <a class="_j_collect_answer"><i></i>收藏</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="comment-wrap _js_comments is_foldup_detail">
                                        <b class="arrow"><i></i></b>
                                        <div class="_js_comment_list">

                                        </div>
                                        <div class="comment-page _js_comment_pagination " data-comment_total="0"></div>
                                        <div class="comment-add clearfix _j_word">
                                            <textarea class="_j_content _j_word_check" id="textid"></textarea>
                                            <span class="word-count"><span class="_j_word_num">0</span>/<span
                                                    class="_j_max_num">600</span> 字</span>
                                            <input class="commentBtn" type="button" value="提交回答">
                                        </div>
                                    </div>
                                </li>
                            </#list>
                        </div>
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <!-- 问答页面侧边栏 -->
    <div class="col-side" id="_js_right_side">
        <!-- 我要提问 -->
        <div class="btn-question">
            <a href="/questions/public" class="btn-ask btn-ask2">我要提问</a>
        </div>
    </div>
</div>
<#include "../common/footer.ftl"/>
</body>
</html>
